# set project's name
PROJECT( Damage_To_Paintjob )

cmake_minimum_required(VERSION 2.4.0)

set (CMAKE_BUILD_TYPE Debug)
#set (CMAKE_CONFIGURATION_TYPES Debug Release) 

if(CMAKE_BUILD_TYPE STREQUAL Debug)
	set (CMAKE_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/debug)
	set (CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/debug)
	set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/debug)
	set (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/debug)
	configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Ogre/bin/release/OgreMain.dll ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/debug/OgreMain.dll COPYONLY)
	configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Ogre/boost_1_44/lib/libboost_thread-mgw45-mt-1_44.dll ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/debug/libboost_thread-mgw45-mt-1_44.dll COPYONLY)
	configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/SDL/bin/SDL.dll ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/debug/SDL.dll COPYONLY)
else ()
	set (CMAKE_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/release)
	set (CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/release)
	set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/release)
	set (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/release)
	configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Ogre/bin/release/OgreMain.dll ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/release/OgreMain.dll COPYONLY)
	configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Ogre/boost_1_44/lib/libboost_thread-mgw45-mt-1_44.dll ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/release/libboost_thread-mgw45-mt-1_44.dll COPYONLY)
	configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/SDL/bin/SDL.dll ${CMAKE_CURRENT_SOURCE_DIR}/damagetopaintjob/bin/release/SDL.dll COPYONLY)
endif() 

# tell cmake to process CMakeLists.txt in that subdirectory

# Options for bullet
OPTION(BUILD_DEMOS "Set when you want to build the demos" OFF)
OPTION(BUILD_EXTRAS "Set when you want to build the demos" OFF)
add_subdirectory(bullet)

add_subdirectory(damagetopaintjob)
